﻿using UnityEngine;
using System.Collections;

public class CameraController : MonoBehaviour {

	public GameObject recordOfSphere;
	private Vector3 offset;

	// Use this for initialization
	void Start () {
		offset = recordOfSphere.transform.position - transform.position;
	}
	
	// Update is called once per frame
	void Update () {
		transform.position = recordOfSphere.transform.position - offset;
	}

	void LateUpdate(){
		transform.position = recordOfSphere.transform.position - offset;
	}
}
